'use strict';
exports = module.exports = function($scope, $timeout) {
    $scope.form = {};
    $scope.form.submited = false;
    $scope.form.param = '0,0,0';
    $scope.form.ajax = 'none';
    $scope.submitfun = function(a, b, c, $submitBtn){
        console.log(arguments)
        $scope.form.param = a+","+b+","+c;
        $scope.form.submited = true;
        $timeout(function(){
            $scope.form.ajax = 'done';
            $submitBtn.enable();
        },3e3)
        return;
    };
    $scope.submitfun2 = function($submitBtn){
        $timeout(function(){
            $submitBtn.enable();
        },3e3)
        return;
    };
}